Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SMOVE command for node #1476

Merged
merged 5 commits into from
May 30, 2024
Merged

Add SMOVE command for node #1476

merged 5 commits into from
May 30, 2024

Conversation

adarovadya
Copy link
Collaborator

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adarovadya adarovadya requested a review from a team as a code owner May 28, 2024 09:16
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Show resolved Hide resolved
node/src/Transaction.ts Show resolved Hide resolved
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
* Creates a new destination set if needed. The operation is atomic.
* See https://valkey.io/commands/smove for more details.
*
* Note: When in cluster mode, `source` and `destination` must map to the same hash slot.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not applicable for transaction, please remove

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we decided to not add it in Transaction?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transaction could be routed to a single node only.
It does not protect a user from making a mistake, but this notice is more applicable to exec function which submits a transaction, rather than to a commands in the transaction.
If we change that decision (it is OK), we need to add the notice to all multi-key commands in transaction in all clients.

node/src/Transaction.ts Outdated Show resolved Hide resolved
@@ -1046,6 +1046,72 @@ export function runBaseTests<Context>(config: {
config.timeout,
);

it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adarovadya adarovadya merged commit e86cd64 into valkey-io:main May 30, 2024
8 checks passed
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
* Add SMOVE command for node

* formatting

* Apply suggestions from code review

Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>

* fix comments

---------

Co-authored-by: ort-bot <glide-for-redis@amazon.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-20-143.eu-west-1.compute.internal>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants